﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarsAdmin.Application.User.Dtos
{
    public class UpdatePasswordInput
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required(ErrorMessage = "id 字段是必须的")]
        public long Id { get; set; }

        /// <summary>
        /// 旧密码
        /// </summary>
        public string? OldPassword { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        public string? NewPassword { get; set; }

        /// <summary>
        /// 新确认密码
        /// </summary>
        [Compare(nameof(NewPassword), ErrorMessage = "新确认密码和新密码不一致")]
        public string? NewConfirmPassword { get; set; }
    }
}